package com.services;

import com.model.OrderModel;
import com.model.PageBeanMode;

import java.util.List;
import java.util.Map;

/**
 * @Program: exam
 * @ClassName: IOrderServices
 * @Description:
 * @Author: li
 * @Create: 2019-07-24 16:19
 */
public interface IOrderServices {
    /**
     * @Description: 添加订单
     * @Author: li
     * @Create: 2019/7/24-16:19
     * @param orderModel
     * @Return void
     */
    void addOrder(OrderModel orderModel);

    /**
     * @Description: 通过邮箱帐号，获取订单
     * @Author: li
     * @Create: 2019/7/24-16:56
     * @param
     * @Return java.util.List<com.li.domain.OrderModel>
     */
    List<OrderModel> queryOrderByEmail(String email, int status);

    /**
     * @Description: 订单已完成，将车辆重新上架 status:1 ;
     * 更新订单状态，status:-1
     * @Author: li
     * @Create: 2019/7/24-18:56
     * @param orderModel
     * @Return void
     */
    void successOrder(OrderModel orderModel);

    /**
     * @Description: 分页返回order
     * @Author: li
     * @Create: 2019/7/24-22:09
     * @param pageStart
     * @param pageSize
     * @param map
     * @Return com.li.domain.PageBeanMode<com.li.domain.OrderModel>
     */
    PageBeanMode<OrderModel> pageOrder(String pageStart, String pageSize, Map<String, String[]> map);

    void refund(OrderModel orderModel);
}
